<div id="layout_main_top">

</div>
<div id="layout_main">

<DIV class="layout_large_table_top">

</DIV>
<DIV class="layout_large_table">
<table id="main_table" cellspacing='0' >
<tr class="menu_header">
	<th>#</th>

	<th>
		<a href="./index.php?page=downloads&amp;sort=type" {popup text="Sort by file type"  center=#overlib_center# wrap=#overlib_wrap# offsety=#overlib_offsety# fgcolor=#overlib_fgcolor# bgcolor=#overlib_bgcolor#  textcolor=#overlib_textcolor#}>
			<img src="./images/buttons/file_icon.gif" alt="" width="17" height="17" />
		</a>
	</th>
	<th align='left'>
		<a href="./index.php?page=downloads&amp;sort=name" {popup text="Sort by Name"  center=#overlib_center# wrap=#overlib_wrap# offsety=#overlib_offsety# fgcolor=#overlib_fgcolor# bgcolor=#overlib_bgcolor#  textcolor=#overlib_textcolor#}>
			Name
		</a>
	</th>	
	<th align='left' width='425px'>
		<a href="./index.php?page=downloads&amp;sort=description" {popup text="Sort by Description"  center=#overlib_center# wrap=#overlib_wrap# offsety=#overlib_offsety# fgcolor=#overlib_fgcolor# bgcolor=#overlib_bgcolor#  textcolor=#overlib_textcolor#}>
			Description
		</a>
	</th>	
	<th>
		&nbsp;
	</th>
</tr>	

{foreach name=downloads item=download from=$downloads}

{if $smarty.session.level gte $download.user_level}
<tr class="{cycle values="row_1,row_2" advance=true}" id="download{$download.download_id}">
	<td>{$smarty.foreach.downloads.iteration}</td>
	<td align='center'>
	<a href='./downloads/{$download.file_name}'><img src='./images/buttons/zip_icon.gif' {popup text="This file is a compressed Zip library.<br>Click to download."  center=#overlib_center# wrap=#overlib_wrap# offsety=#overlib_offsety# fgcolor=#overlib_fgcolor# bgcolor=#overlib_bgcolor#  textcolor=#overlib_textcolor#} /></a>
	</td>
	<td align='left'>
	{$download.name}
	</td>
	<td align='left'>
	{if $download.description|count_characters gt 72}
	<a href="#" {popup text=$download.description  center=#overlib_center# wrap=false offsety=#overlib_offsety# fgcolor=#overlib_fgcolor# bgcolor=#overlib_bgcolor#  textcolor=#overlib_textcolor# width=145} >{$download.description|truncate:73:"...":true}</a>
	{else}
	{$download.description}
	{/if}
	</td>
	<td>
	
	{if isset($download.screenshot_name)}
	
	
	{assign var="screenshot_name" value=$download.screenshot_name}
	
	
	<img src="./images/buttons/search.gif" alt="" width="14" height="14" {popup text="<img src='./images/screenshots/$screenshot_name' ></img>" center=#overlib_center# wrap=#overlib_wrap# offsety=#overlib_offsety# fgcolor=#overlib_fgcolor# bgcolor=#overlib_bgcolor#  textcolor=#overlib_textcolor#} />
	{/if}
	</td>
</tr>	
{/if}
{foreachelse}
<tr class="{cycle values="row_1,row_2"}">
	<td colspan=15>No downloads could be found.</td>	
</tr>	

{/foreach}
<tr class="{cycle values="row_1,row_2"}">
	<td colspan=4>
		
	</td>	
</tr>	

<tr class="menu_footer">
	<td colspan=5></td>	
</tr>	



</table>
</div>

<DIV class="layout_large_table_bottom">

</DIV>
</div>
<div id="layout_main_bottom">

</div>
